package com.sky.course;

import com.sky.myrule.MyselfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication
@EnableEurekaClient
//在启动该微服务的时候就能去加载我们自定义的Ribbon配置，从而是配置生效
@RibbonClient(name = "COURSE",configuration = MyselfRule.class)
public class CourseConsumer_App {
    public static void main(String[] args) {
        SpringApplication.run(CourseConsumer_App.class,args);
    }
}
